﻿namespace Borg
{
    public class DiscoveryHelper : IDiscoveryHelper
    {
        public void SetExtensionTypeInfos(PluginInfo plugin,
            RepositoryCollection<ExtensionTypeInfo> extensionTypes)
        {
            plugin.extensionTypeInfos = extensionTypes;
        }

        public void SetMonitors(ExtensionTypeInfo type,
            RepositoryCollection<MonitorInfo> monitors)
        {
            type.monitorInfos = monitors;
        }

        public void SetParamValues(PlugTypeInfo plugType,
            RepositoryCollection<ParamValue> paramValues)
        {
            plugType.paramValues = paramValues;
        }

        public void SetPlugTypeInfos(ExtensionTypeInfo type,
            RepositoryCollection<PlugTypeInfo> plugTypes)
        {
            type.plugTypeInfos = plugTypes;
        }

        public void SetSlotTypeInfos(ExtensionTypeInfo type,
            RepositoryCollection<SlotTypeInfo> slotTypes)
        {
            type.slotTypeInfos = slotTypes;
        }
    }
}

